<!DOCTYPE html>
<html>
<head>
    <title>生成随机数</title>
    <script>
        function generateRandomNumber() {
            var randomNumber = Math.floor(Math.random() * 100) + 1;
            document.getElementById("randomNumber").innerHTML = "随机数：" + randomNumber;
        }
    </script>
</head>
<body>
<h1>点击按钮生成随机数</h1>
<button onclick="generateRandomNumber()">生成随机数</button>
<p id="randomNumber"></p>
</body>
</html>
